<?php
declare (strict_types = 1);

namespace app\common\request;

use app\BaseRequest;

class AuthRequest extends BaseRequest
{
    protected $rule = [
        'didi-token'    => 'require',
        'app-id'        => 'require',
        'user-id'       => 'require',
        'token-time'    => 'require',
        'login-token'   => 'require',
        'version'       => 'require',
    ];

    protected $message = [
        'didi-token.require'    => 'didi-token必须',
        'app-id.require'        => 'app-id必须',
        'user-id.require'       => 'user-id必须',
        'token-time.require'    => 'token-time必须',
        'login-token.require'   => 'login-token必须',
        'version.require'       => 'version必须',
    ];

    protected $scene = [
        'auth' => ['app-id', 'user-id','login-token','version','token-time','didi-token'],
    ];
}
